<template>
  <div
    style="padding: 0 15px;"
    :class="{'is-active':isActive}"
    class="hamburger"
    @click="setSidebar"
  />
</template>

<script>

import { mapActions } from 'vuex'
export default {
  name: 'Hamburger',
  computed: {
    ...mapActions({
      setSidebar: 'app/toggleSideBar'
    })
  },
  methods: {

  }
}
</script>

<style scoped>
.hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.hamburger.is-active {
  transform: rotate(180deg);
}
</style>
